package meihua.stopcarapp.presenter.contract;

import meihua.mylibrary.base.BaseModel;
import meihua.mylibrary.base.BasePresenter;
import meihua.stopcarapp.bean.result.UserResult;
import meihua.stopcarapp.ui.BaseView;
import rx.Observable;

/**
 * Name: LGZ
 * Time: 2017/5/11.
 * Dec:
 */

public class SplashContract {

    public interface Model extends BaseModel {
        //获取用户个人信息
        Observable<UserResult> getUserById(String uid, String phone);
    }

    public interface View extends BaseView {
        //服务器返回的用户信息
        void returnUserInfo(UserResult userEntity);
    }

    public abstract static class Presenter extends BasePresenter<View, Model> {
        //发起请求
        public abstract void sendGetUser(String uid, String phone);
    }

}
